<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8">
    <title>Title</title>
    
    <style>
      .card {
        border: 1px gray solid;
        border-radius: 10px;
        padding: 15px;
      }
      
      .card-title {
        font-size: 15px;
        font-weight: bold;
        margin: 10px;
      }
      
      .card-body > div {
        color: darkgray;
        background: pink;
        margin: 10px;
        height: 100px;
      }
    </style>
  </head>
  <body>
    <!--grid-template-columns属性为指定数量的grid项设置列宽度，其属性值可为长度、百分比、fr或repeat()。fr指占用可用空间的比例；repeat()用于构建重复的列，参数分别表示重复次数和列宽度，其中重复次数可用自动填满关键字auto-fill，列宽度可用minmax()设置最小最大值，最小最大值可用自适应关键字auto。grid-template-rows与grid-template-columns用法类似-->
    <div class="card">
      <div class="card-title">[grid-template-columns: 200px 2fr 1fr]</div>
      <div class="card-body" style="display: grid;grid-template-columns: 200px 2fr 1fr">
        <div>1</div>
        <div>2</div>
        <div>3</div>
        <div>4</div>
        <div>5</div>
        <div>6</div>
      </div>
    </div>
    <br>
    <div class="card">
      <div class="card-title">[grid-template-columns: repeat(3, 200px)]</div>
      <div class="card-body" style="display: grid;grid-template-columns: repeat(3, 200px)">
        <div>1</div>
        <div>2</div>
        <div>3</div>
        <div>4</div>
        <div>5</div>
        <div>6</div>
      </div>
    </div>
    <br>
    <div class="card">
      <div class="card-title">[grid-template-columns: repeat(3, 1fr)]</div>
      <div class="card-body" style="display: grid;grid-template-columns: repeat(3, 1fr)">
        <div>1</div>
        <div>2</div>
        <div>3</div>
        <div>4</div>
        <div>5</div>
        <div>6</div>
      </div>
    </div>
    <br>
    <div class="card">
      <div class="card-title">[grid-template-columns: 2fr repeat(2, 1fr)]</div>
      <div class="card-body" style="display: grid;grid-template-columns: 2fr repeat(2, 1fr)">
        <div>1</div>
        <div>2</div>
        <div>3</div>
        <div>4</div>
        <div>5</div>
        <div>6</div>
      </div>
    </div>
  </body>
</html>